package ru.cod.rs.objects;

import ru.cod.rs.interfaces.Game;
import ru.cod.rs.interfaces.Input.TouchEvent;

public abstract class Screen {

	protected Game game;

	public Screen(Game g) {

		game = g;
	}

	public abstract void update(float delta);

	public abstract void render(float delta);

	public void pause() {

	};

	public void resume() {

	};

	public void dispose() {

	};

	protected boolean inBounds(TouchEvent event, int x, int y, int w, int h) {

		return (event.x > x && event.x < x + w - 1 && event.y > y && event.y < y
				+ h - 1);

	}
}
